<!--
 * @Descripttion: 
 * @version: 
 * @Author: 尹伊
 * @Date: 2020-04-15 16:00:48
 * @LastEditors: 尹伊
 * @LastEditTime: 2020-06-10 11:00:17
 -->

<template>
  <div>
    <div class="box-img" v-if="fileType===1">
      <!--<a id="selectfiles" href="javascript:void(0);" class='btn' οnchange='console.log(888)'>选择文件</a>-->
      <!--<a id="postfiles" href="javascript:void(0);" class='btn'>开始上传</a>-->
      <div class="box el-icon-circle-plus" :id="'selectfiles'+index" @dblclick.native="alert(index)">
        <div class="img_del el-icon-circle-close" v-if="Url!==''" @click.stop="del(index)"></div>
        <img :src="Url" alt="" v-if="Url!==null">
        <div class="jindu_box" v-if="jintu">
          <el-progress type="circle" :percentage="percentage" color="#67C23A" v-if="percentage!==100"></el-progress>
          <el-progress type="circle" :percentage="percentage" status="success" v-if="percentage===100"></el-progress>
        </div>
      </div>
      <div class="img_name" v-if="fileType===1">
        {{name}}
      </div>
    </div>
    <div class="file-box" v-if="fileType!==1">
      <div>
        {{Url===''?'请选择文件':pushName}}
        <div v-if="jintu">
          <el-progress :percentage="percentage" color="#67C23A" v-if="percentage!==100"></el-progress>
          <el-progress :percentage="percentage" status="success" v-if="percentage===100"></el-progress>
        </div>
      </div>
      <el-button type="primary" :id="'selectfiles'+index">
        {{Url===''?'选择文件':'重新选择'}}
      </el-button>
      <el-button type="primary" v-if="Url!==''" @click="inspect(Url)">
        检查
      </el-button>
    </div>
  </div>
</template>